<template>
    <div>
        <h2>添加管理员</h2>
        <div style="width:340px;text-align:center;margin:0 auto">
          <div style="line-height:60px"> 管理员账号 <el-input type="text" v-model="admins.account"  style="width:220px;height:60px" autocomplete="on"></el-input></div>
          <div style="line-height:60px"> 管理员密码 <el-input type="text" v-model="admins.password" style="width:220px;height:60px" autocomplete="on"></el-input></div>
          <div style="line-height:60px">  </div>
        </div>
        <button @click="addAdmins(admins)">确认新增</button>
    </div>
</template>

<script>
import axios from 'axios';
import {createNamespacedHelpers} from 'vuex';
const { mapActions,mapState,mapMutations } = createNamespacedHelpers(
    "admins"
);

export default {
 data(){
     return{
         admins:{
             account:'',
             password:'',
         }
     }
 },
 created(){
     
 },
  computed:{
    
 },
 methods:{
     ...mapActions(['addAdmins'])
 }
}
</script>